<h2>Admins</h2>
<table>
<tr>
<th>Last Name</th>
<th>First Name</th>
<th>Username</th>
<th>Actions</th>
</tr>
<?php foreach($admin_users as $admin):?>
<tr>
<td>
<?php echo $admin->last_name;?>
</td>
<td>
<?php echo $admin->first_name;?>
</td>
<td>
<?php echo $admin->username;?>
</td>
<td>
<?php echo Html::anchor('admin/users/view/'.$admin->id, 'Details');?>
<?php echo Html::anchor('admin/users/delete/'.$admin->id, 'Delete');?>
</td>
</tr>
<?php endforeach;?>
</table>

<h2>Customers</h2>
<table>
<tr>
<th>Last Name</th>
<th>First Name</th>
<th>Username</th>
<th>Actions</th>
</tr>
<?php foreach($login_users as $login):?>
<tr>
<td>
<?php echo $login->last_name;?>
</td>
<td>
<?php echo $login->first_name;?>
</td>
<td>
<?php echo $login->username;?>
</td>
<td>
<?php echo Html::anchor('admin/users/view/'.$login->id, 'Details');?>
<?php echo Html::anchor('admin/users/orders/'.$login->id, 'Orders');?>
</td>
</tr>
<?php endforeach;?>
</table>